package BookManager;

/**
 
 */

public class Book {
    private String title;
    private String author;
    private String publisher;
    private String isbn;
    private String date;
    
    public Book(String title, String author, String publisher, String isbn, String date) {
        this.title = title;
        this.author = author;
        this.publisher = publisher;
        this.isbn = isbn;
        this.date = date;
    }
    
    public String getTitle() { return this.title; }
    public void setTitle(String title) { this.title = title; }
    public String getAuthor() { return this.author; }
    public void setAuthor(String author) { this.author = author; }
    public String getPublisher() { return this.publisher; }
    public void setPublisher(String publisher) { this.publisher = publisher; }
    public String getIsbn() { return this.isbn; }
    public void setIsbn(String isbn) { this.isbn = isbn; }
    public String getDate() { return this.date; }
    public void setDate() { this.date = date; }
    
    public Book copy() {
	Book b = new Book(title, author, publisher, isbn, date);
	
	return b;
    }
    public String toString() {
	String s  = "\"" + title + "\", by ";
	       s += author + ", ";
	       s += "(" + isbn + ") ";
	       s += publisher;
	       s += " [ISBN: " + date + "]";
	       
	return s;
    }
    
}